#pragma once
#include "protocols/protocal.h"
#include "Protocols/PacketHeader.h"
#include "utilities/utilities.h"

class HttpHeader : public PacketHeader {
public:
	HttpHeader(ProtocolPtr id,const unsigned char* data,size_t pos,size_t length):PacketHeader(id,data,pos,length) {
		mLength = getHeaderLength();
	}

	void toShowableItems(ShowableItem* root) const;

	QString getSummary() const;

	int getHeaderLength() const;
};


DECLARE_PROTOCOL_BEGIN(Http,HttpHeader)
DECLARE_PROTOCOL_END